package com.example.ten.util;

/**
 * @author 诸葛龙辰
 */

public enum ResultStatus {
    //定义常量
    SUCCESS(200,"执行成功"),
    ERROR(500,"执行失败");

    //返回码
    private  Integer  returnCode;
    //返回信息
    private String  returnMessage;

    ResultStatus(Integer returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }

    public Integer getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(Integer returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }
}


